package com.example.springboot.service.impl;

import com.example.springboot.mapper.HomeMapper;
import com.example.springboot.pojo.Img;
import com.example.springboot.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HomeServiceImpl implements HomeService {

    @Autowired
    HomeMapper homeMapper;

    @Override
    public void uploadImg(String url) {
        homeMapper.uploadImg(url);
    }

    @Override
    public Img[] getAllImg() {
        return homeMapper.getAllImg();
    }

    @Override
    public String findById(Integer id) {
        return homeMapper.findById(id);
    }

    @Override
    public void deleteImg(Integer id) {
        homeMapper.deleteImg(id);
    }
}
